package com.tkjt.pms.modules.manageWeight.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tkjt.pms.common.entity.TkIndexInfo;
import com.tkjt.pms.common.entity.TkIndexWeight;
import com.tkjt.pms.common.entity.TkIndexWeightLog;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.system.entity.SysDepart;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface WeightMapper extends BaseMapper<TkIndexWeight> {
    List<TkIndexWeight> getTkIndexWeightByYixian(TkIndexWeight t,@Param("likeOrgCode") String likeOrgCode);

    TkIndexWeightLog getTkIndexWeightLogByWeightId(@Param("weightId") String weightId);

//    List<SysType> getTsTypeByCode(@Param("typegroupcode") String typegroupcode);

    List<TkIndexInfo> getSelectTkIndexInfo(@Param("indexGroup") String indexGroup);

    List<SysDepart> getSelectTSDepart(@Param("orgCode") String orgCode);

    List<TkIndexWeight> selectSumWeightForXiaoJi(Map<String,Object> map);

    public void updateLastMonthWeightByParam(Map<String, Object> map);
}
